/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auditenergetic;


public class Clasa_Inertie {
   // private static double  mj;  //masa unitara a elem de constr j care intervine in inertia termica
    private static double Aj;  //aria utila fiecarui elem de constr j pe baza dim interioare-metri patrati
    private static double Ad = 10; //aria cladirii sau partii analizat - metri patrati
    private static double raport;

    public double getAj()
    {
        return Aj;
    }
    public double getAd()
    {
        return Ad;
    }

    public static double Compute(int ...materiale)
    {
        double prod = 1;
        double suma = 0;
        for(int i:materiale)
        {
            Aj = i*2;
            prod = i * Aj;
            suma = suma + prod;
            Aj = 0;
        }

        raport = suma/Ad;
        return raport;
    }
}
